
const pluginRemoveConsole = []; // 移除插件数组

if (process.env.NODE_ENV === 'production') { // 生产环境才启用插件
  pluginRemoveConsole.push("transform-remove-console");
}

module.exports = {
  presets: [
    '@vue/cli-plugin-babel/preset'
  ],
  plugins: [
    ...pluginRemoveConsole,
    '@babel/plugin-syntax-dynamic-import'
  ]
}
